package com.zc.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zc.blog.mapper.CategoryMapper;
import com.zc.blog.model.Category;
import com.zc.blog.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户Service实现类
 */
@Service("CategoryService")
public class ICategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

    @Autowired
    private CategoryMapper categoryMapper;


    @Override
    public Category findById(Integer id) {
        return categoryMapper.findById(id);
    }

    @Override
    public List<Category> findShow() {
        return categoryMapper.findShow();
    }
}
